/*
 * @Author: cl
 * @Description: mock模拟数据
 * @Date: 2023-05-17 17:03:02
 * @LastEditTime: 2023-05-28 16:22:29
 * @FilePath: \vue3scaffold\mock\user.ts
 * @LastEditors: cl
 */
import { MockMethod } from 'vite-plugin-mock'
export default [
  {
    url: '/api/get',
    method: 'get',
    response: () => {
      return {
        code: 0,
        data: {
          name: 'asdasd',
          age:19
        },
      }
    },
  },
  {
    url: '/api/info',
    method: 'get',
    response: () => {
      return {
        code:200,
        types:'success',
        message:'请求成功',
        result:{
          name:'张三',
          age:20
        }
      }
    },
  }
] as MockMethod[]
